﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RecepcionDocInsertOPT1Form.aspx.cs" 
Inherits="UILGestion.ObraAdmin.RecepcionDoc.RecepcionDocInsertOPT1Form" %>

<%@ Register Assembly="SesarchResultLib" Namespace="SesarchResultLib" TagPrefix="cc1" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<%@ Register src="OrdenCompraSinDocGrid.ascx" tagname="OrdenCompraSinDocGrid" tagprefix="uc5" %>
<%@ Register src="~/Control/menuObraCtrl.ascx" tagname="menuObraCtrl" tagprefix="uc1" %>



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
       <link href="../../css/main.css" rel="stylesheet" type="text/css" />
        <link rel="stylesheet" type="text/css" href="../../estilos/_common/styles/fonts.css" />
 <link rel="stylesheet" type="text/css" href="../../estilos/_common/styles/global.css" />
 <link rel="stylesheet" type="text/css" href="../../estilos/_common/styles/theme.css" />
    <style type="text/css">
        .style1
        {
            width: 32px;
            height: 32px;
        }
        .style2
        {
            width: 52px;
            height: 42px;
        }
        .style3
        {
            width: 22px;
            height: 22px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server"  >
   
    <asp:ToolkitScriptManager runat="server" EnablePartialRendering="true" EnableScriptGlobalization="true">
         </asp:ToolkitScriptManager>
    <uc1:menuObraCtrl ID="menuObraCtrl1" runat="server"   />

    <input id="idObra" type="hidden" runat="server" /> 
    <input id="idmotivo" type="hidden" runat="server" /> 
    

    <asp:Panel ID="PanelButtom" runat="server"
  BackColor="white">
 
    <asp:Panel ID="OrdenCompraPendRecepDocumentoPanel" Visible="false"  runat="server">
    

  <asp:Panel ID="pnlMain" runat="server" 
  CssClass="Heading secTitle AreaHeading ms-crm-List-Header">
  
                 <asp:Label ID="Label1" runat="server" Text="SELECCIONE ORDEN:" 
                         style="font-size: large; color: #960818"></asp:Label>


</asp:Panel>
 <table class="ms-crm-MaxWidth">
        <tr>
            <td align="right" width="100px">
                RUC/Proveedor:</td>
            <td>
                <asp:TextBox ID="proveedorTXT" runat="server" Width="250px"  AutoPostBack="true"></asp:TextBox>
                <asp:ImageButton ID="imageBTN" runat="server" ImageUrl="../../Images/find.png" />
                
            </td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
    <hr />
&nbsp;<asp:UpdatePanel runat="server" ID="UpdatePanelOCRecep" UpdateMode="Conditional"  >
       <ContentTemplate>
           
            <uc5:OrdenCompraSinDocGrid ID="OrdenCompraSinDocGrid1" runat="server"  DataSourceID="OCompraFactODS" />
           
           <br />
           <asp:ObjectDataSource ID="OCompraFactODS" runat="server" EnablePaging="True" 
               SelectCountMethod="Count" SelectMethod="getOrdenCompraSinFactura" 
               SortParameterName="sortExpression" TypeName="BOL.OrdenCompraBL">
               <SelectParameters>
                   <asp:QueryStringParameter DefaultValue="0" Name="idObra"  QueryStringField="idObra" Type="Int32" />
                    <asp:ControlParameter Name="proveedor" Type="String" ControlID="proveedorTXT"  />
                   <asp:Parameter Name="startRowIndex" Type="Int32" />
                   <asp:Parameter Name="maximumRows" Type="Int32" />
                   <asp:Parameter Name="sortExpression" Type="String" />
               </SelectParameters>
           </asp:ObjectDataSource>

       </ContentTemplate>
       <Triggers>
       <asp:AsyncPostBackTrigger ControlID="proveedorTXT" />
       <asp:AsyncPostBackTrigger ControlID="imageBTN" />
       
       </Triggers>
       
       </asp:UpdatePanel>
   
 </asp:Panel>
 </asp:Panel>
    </form>
 
</body>
</html>
